package com.xiaomaoaixue.postapi.api;

import com.xiaomaoaixue.common.core.constant.ServiceNameConstants;
import com.xiaomaoaixue.common.core.domain.R;
import com.xiaomaoaixue.common.core.web.domain.AjaxResult;
import com.xiaomaoaixue.postapi.api.domain.WeUserInfoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户服务
 * 
 * @author xiaomaoaixue
 */
@FeignClient(contextId = "remoteWeUserService", value = ServiceNameConstants.POSTAPI_SERVICE)
public interface RemoteWeUserService
{
    @GetMapping({"/wecom/user/getUserInfo"})
    public R<WeUserInfoVo> getUserInfo(@RequestParam("code") String code);
}
